.class Lcom/example/m6wmr/SearchActivity$9;
.super Ljava/lang/Thread;
.source "SearchActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/SearchActivity;->getgood()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/SearchActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/SearchActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/SearchActivity$9;->this$0:Lcom/example/m6wmr/SearchActivity;

    .line 584
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 13

    .prologue
    const/4 v12, 0x1

    .line 586
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 587
    iget-object v9, p0, Lcom/example/m6wmr/SearchActivity$9;->this$0:Lcom/example/m6wmr/SearchActivity;

    # getter for: Lcom/example/m6wmr/SearchActivity;->temshopls:Ljava/util/List;
    invoke-static {v9}, Lcom/example/m6wmr/SearchActivity;->access$13(Lcom/example/m6wmr/SearchActivity;)Ljava/util/List;

    move-result-object v9

    invoke-interface {v9}, Ljava/util/List;->clear()V

    .line 589
    new-instance v6, Landroid/os/Message;

    invoke-direct {v6}, Landroid/os/Message;-><init>()V

    .line 591
    .local v6, "msg":Landroid/os/Message;
    new-instance v9, Ljava/lang/StringBuilder;

    iget-object v10, p0, Lcom/example/m6wmr/SearchActivity$9;->this$0:Lcom/example/m6wmr/SearchActivity;

    iget-object v10, v10, Lcom/example/m6wmr/SearchActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v10}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v10

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 592
    const-string v10, "/index.php?ctrl=app&source=1&action=newsearchshop&lat="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    .line 593
    iget-object v10, p0, Lcom/example/m6wmr/SearchActivity$9;->this$0:Lcom/example/m6wmr/SearchActivity;

    iget-object v10, v10, Lcom/example/m6wmr/SearchActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v10}, Lmyapp/MyApp;->getLat()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&lng="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/example/m6wmr/SearchActivity$9;->this$0:Lcom/example/m6wmr/SearchActivity;

    iget-object v10, v10, Lcom/example/m6wmr/SearchActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v10}, Lmyapp/MyApp;->getLng()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&searchvalue="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    .line 594
    iget-object v10, p0, Lcom/example/m6wmr/SearchActivity$9;->this$0:Lcom/example/m6wmr/SearchActivity;

    # getter for: Lcom/example/m6wmr/SearchActivity;->searchvalue:Ljava/lang/String;
    invoke-static {v10}, Lcom/example/m6wmr/SearchActivity;->access$8(Lcom/example/m6wmr/SearchActivity;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&page="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/example/m6wmr/SearchActivity$9;->this$0:Lcom/example/m6wmr/SearchActivity;

    # getter for: Lcom/example/m6wmr/SearchActivity;->page:I
    invoke-static {v10}, Lcom/example/m6wmr/SearchActivity;->access$11(Lcom/example/m6wmr/SearchActivity;)I

    move-result v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&areaid="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/example/m6wmr/SearchActivity$9;->this$0:Lcom/example/m6wmr/SearchActivity;

    # getter for: Lcom/example/m6wmr/SearchActivity;->areaid:Ljava/lang/String;
    invoke-static {v10}, Lcom/example/m6wmr/SearchActivity;->access$19(Lcom/example/m6wmr/SearchActivity;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    .line 595
    const-string v10, "&datatype=json"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    .line 591
    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    .line 596
    .local v8, "url":Ljava/lang/String;
    const-string v9, "Marketactivity"

    new-instance v10, Ljava/lang/StringBuilder;

    const-string v11, "getgood\uff08\uff09\u83b7\u53d6\u5546\u54c1\u5217\u8868"

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v10, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 598
    iget-object v9, p0, Lcom/example/m6wmr/SearchActivity$9;->this$0:Lcom/example/m6wmr/SearchActivity;

    iget-object v9, v9, Lcom/example/m6wmr/SearchActivity;->m:Lmyapp/MyApp;

    invoke-static {v8, v9}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v7

    .line 600
    .local v7, "str":Ljava/lang/String;
    const-string v9, "Marketactivity"

    new-instance v10, Ljava/lang/StringBuilder;

    const-string v11, "getgood\uff08\uff09\u83b7\u53d6\u5546\u54c1\u5217\u8868"

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v10, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 602
    :try_start_0
    new-instance v4, Lorg/json/JSONObject;

    invoke-direct {v4, v7}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 604
    .local v4, "json":Lorg/json/JSONObject;
    const-string v9, "error"

    invoke-virtual {v4, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    const-string v10, "true"

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_0

    .line 605
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 607
    const-string v9, "msg"

    invoke-virtual {v4, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    iput-object v9, v6, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 608
    const/4 v9, 0x1

    iput v9, v6, Landroid/os/Message;->arg1:I

    .line 609
    iget-object v9, p0, Lcom/example/m6wmr/SearchActivity$9;->this$0:Lcom/example/m6wmr/SearchActivity;

    iget-object v9, v9, Lcom/example/m6wmr/SearchActivity;->h:Landroid/os/Handler;

    invoke-virtual {v9, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 678
    .end local v4    # "json":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 612
    .restart local v4    # "json":Lorg/json/JSONObject;
    :cond_0
    const-string v9, "msg"

    invoke-virtual {v4, v9}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v9

    if-eqz v9, :cond_1

    .line 613
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 614
    const/4 v9, 0x2

    iput v9, v6, Landroid/os/Message;->arg1:I

    .line 615
    iget-object v9, p0, Lcom/example/m6wmr/SearchActivity$9;->this$0:Lcom/example/m6wmr/SearchActivity;

    iget-object v9, v9, Lcom/example/m6wmr/SearchActivity;->h:Landroid/os/Handler;

    invoke-virtual {v9, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 670
    .end local v4    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v0

    .line 672
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    .line 673
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 675
    const/4 v9, 0x4

    iput v9, v6, Landroid/os/Message;->arg1:I

    .line 676
    iget-object v9, p0, Lcom/example/m6wmr/SearchActivity$9;->this$0:Lcom/example/m6wmr/SearchActivity;

    iget-object v9, v9, Lcom/example/m6wmr/SearchActivity;->h:Landroid/os/Handler;

    invoke-virtual {v9, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 619
    .end local v0    # "e":Lorg/json/JSONException;
    .restart local v4    # "json":Lorg/json/JSONObject;
    :cond_1
    :try_start_1
    const-string v9, "msg"

    invoke-virtual {v4, v9}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v5

    .line 623
    .local v5, "json1":Lorg/json/JSONObject;
    const-string v9, "goodslist"

    invoke-virtual {v5, v9}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v9

    if-eqz v9, :cond_2

    .line 624
    const/16 v9, 0xb

    iput v9, v6, Landroid/os/Message;->arg1:I

    .line 625
    iget-object v9, p0, Lcom/example/m6wmr/SearchActivity$9;->this$0:Lcom/example/m6wmr/SearchActivity;

    iget-object v9, v9, Lcom/example/m6wmr/SearchActivity;->h:Landroid/os/Handler;

    invoke-virtual {v9, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 626
    const-string v9, "111111111111111"

    const-string v10, "11"

    invoke-static {v9, v10}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 627
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    goto :goto_0

    .line 631
    :cond_2
    const-string v9, "goodslist"

    invoke-virtual {v5, v9}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v3

    .line 633
    .local v3, "jarray1":Lorg/json/JSONArray;
    if-nez v3, :cond_3

    .line 634
    const/16 v9, 0x6f

    iput v9, v6, Landroid/os/Message;->arg1:I

    .line 635
    iget-object v9, p0, Lcom/example/m6wmr/SearchActivity$9;->this$0:Lcom/example/m6wmr/SearchActivity;

    iget-object v9, v9, Lcom/example/m6wmr/SearchActivity;->h:Landroid/os/Handler;

    invoke-virtual {v9, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 636
    const-string v9, "111111111111111"

    const-string v10, "11"

    invoke-static {v9, v10}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 637
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    goto :goto_0

    .line 640
    :cond_3
    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v9

    if-ge v9, v12, :cond_4

    .line 641
    iget-object v9, p0, Lcom/example/m6wmr/SearchActivity$9;->this$0:Lcom/example/m6wmr/SearchActivity;

    new-instance v10, Ljava/util/ArrayList;

    invoke-direct {v10}, Ljava/util/ArrayList;-><init>()V

    invoke-static {v9, v10}, Lcom/example/m6wmr/SearchActivity;->access$20(Lcom/example/m6wmr/SearchActivity;Ljava/util/List;)V

    .line 642
    const/16 v9, 0x8

    iput v9, v6, Landroid/os/Message;->arg1:I

    .line 644
    iget-object v9, p0, Lcom/example/m6wmr/SearchActivity$9;->this$0:Lcom/example/m6wmr/SearchActivity;

    iget-object v9, v9, Lcom/example/m6wmr/SearchActivity;->h:Landroid/os/Handler;

    invoke-virtual {v9, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 645
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    goto/16 :goto_0

    .line 648
    :cond_4
    iget-object v9, p0, Lcom/example/m6wmr/SearchActivity$9;->this$0:Lcom/example/m6wmr/SearchActivity;

    new-instance v10, Ljava/util/ArrayList;

    invoke-direct {v10}, Ljava/util/ArrayList;-><init>()V

    invoke-static {v9, v10}, Lcom/example/m6wmr/SearchActivity;->access$20(Lcom/example/m6wmr/SearchActivity;Ljava/util/List;)V

    .line 649
    const/4 v2, 0x0

    .local v2, "i":I
    :goto_1
    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v9

    if-lt v2, v9, :cond_5

    .line 666
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 667
    const/16 v9, 0x8

    iput v9, v6, Landroid/os/Message;->arg1:I

    .line 669
    iget-object v9, p0, Lcom/example/m6wmr/SearchActivity$9;->this$0:Lcom/example/m6wmr/SearchActivity;

    iget-object v9, v9, Lcom/example/m6wmr/SearchActivity;->h:Landroid/os/Handler;

    invoke-virtual {v9, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 650
    :cond_5
    new-instance v1, Lbean/GoodsBean;

    invoke-direct {v1}, Lbean/GoodsBean;-><init>()V

    .line 651
    .local v1, "gb":Lbean/GoodsBean;
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    .line 652
    const-string v10, "shopid"

    invoke-virtual {v9, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 651
    invoke-virtual {v1, v9}, Lbean/GoodsBean;->setShopid(Ljava/lang/String;)V

    .line 653
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    .line 654
    const-string v10, "name"

    invoke-virtual {v9, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 653
    invoke-virtual {v1, v9}, Lbean/GoodsBean;->setname(Ljava/lang/String;)V

    .line 655
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    .line 656
    const-string v10, "sellcount"

    .line 655
    invoke-virtual {v9, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v1, v9}, Lbean/GoodsBean;->setsellcount(Ljava/lang/String;)V

    .line 657
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    const-string v10, "cost"

    invoke-virtual {v9, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/Float;->floatValue()F

    move-result v9

    invoke-virtual {v1, v9}, Lbean/GoodsBean;->setcost(F)V

    .line 658
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    .line 659
    const-string v10, "instro"

    .line 658
    invoke-virtual {v9, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v1, v9}, Lbean/GoodsBean;->setInstro(Ljava/lang/String;)V

    .line 660
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v9

    .line 661
    const-string v10, "img"

    invoke-virtual {v9, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 660
    invoke-virtual {v1, v9}, Lbean/GoodsBean;->setimg(Ljava/lang/String;)V

    .line 662
    iget-object v9, p0, Lcom/example/m6wmr/SearchActivity$9;->this$0:Lcom/example/m6wmr/SearchActivity;

    # getter for: Lcom/example/m6wmr/SearchActivity;->good:Ljava/util/List;
    invoke-static {v9}, Lcom/example/m6wmr/SearchActivity;->access$17(Lcom/example/m6wmr/SearchActivity;)Ljava/util/List;

    move-result-object v9

    invoke-interface {v9, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    .line 649
    add-int/lit8 v2, v2, 0x1

    goto :goto_1
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 681
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 682
    monitor-exit p0

    return-void

    .line 681
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
